package com.poetry.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.poetry.domain.po.Author;
import com.poetry.exception.BasePage;
import com.poetry.exception.R;

import java.util.List;

public interface IAuthorService extends IService<Author> {
    R<Author> queryById(Integer id);

    R<List<Author>> queryAuthorByPage(BasePage basePage);

    R<String> addAuthor(Author author);

    R<Author> updateAuthor(Author author);

    R<String> deleteBatchByIds(List<Integer> ids);
}
